<select {{ $attributes->class('layui-input') }} name="{{$name}}">
    @if($showAll)
        <option value="">所有</option>
    @endif
    @if(!empty($kv))
        @foreach($kv as $k=>$text)
            <option value="{{$k}}" @if($value==$k) selected @endif>{{$text}}</option>
        @endforeach
    @endif
</select>